package com.ruoyi.life.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 公寓账单报表对象 omp_ny_check_report
 *
 * @author zmc
 * @date 2022-08-23
 */
@Data
@ApiModel
public class ApartBillReport implements Serializable {
    private static final long serialVersionUID = 1L;

    /** Id */
    @ApiModelProperty(value = "Id")
    private String id;

    /** 账单编号 */
    @Excel(name = "账单编号")
    @ApiModelProperty(value = "账单编号")
    private String billNum;

    /** 企业id */
    @Excel(name = "企业id")
    @ApiModelProperty(value = "企业id")
    private String enterpriseId;

    /** 费用类型名称 */
//    @Excel(name = "费用类型名称")
//    @ApiModelProperty(value = "费用类型名称")
//    private String feeTypeName;

    /** 账单起始日期 */
/*    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "账单起始日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "账单起始日期")
    private Date beginDate;

    *//** 账单结束日期 *//*
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "账单结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "账单结束日期")
    private Date endDate;*/

   private String jiaoFeTime;

    @Excel(name = "租金")
    @ApiModelProperty(value = "租金")
    private BigDecimal rental = BigDecimal.valueOf(0);

    @Excel(name = "物管费")
    @ApiModelProperty(value = "物管费")
    private BigDecimal propertyFee = BigDecimal.valueOf(0);

    @Excel(name = "设施使用费")
    @ApiModelProperty(value = "设施使用费")
    private BigDecimal facilityFee = BigDecimal.valueOf(0);

    /** 应收金额 */
    @Excel(name = "应收金额")
    @ApiModelProperty(value = "应收金额")
    private BigDecimal receivableAmount = BigDecimal.valueOf(0);

    /** 实收金额 */
    @Excel(name = "实收金额")
    @ApiModelProperty(value = "实收金额")
    private BigDecimal payAmount;

    /** 结清状态(0待支付，1部分支付，2已支付) */
    @Excel(name = "结清状态")
    @ApiModelProperty(value = "结清状态(0待支付，1部分支付，2已支付)")
    private String payState;

    /** 账单状态(0执行中，1已作废，2已过期) */
    @Excel(name = "账单状态")
    @ApiModelProperty(value = "账单状态(0执行中，1已作废，2已过期)")
    private String billState;

    /** 租赁记录id */
    @ApiModelProperty(value = "租赁记录id")
    private String recordId;

    /** 总面积 */
    @Excel(name = "缴费面积")
    @ApiModelProperty(value = "总面积")
    private BigDecimal totalArea;

    /** 本月缴费总额 */
    @Excel(name = "本月缴费")
    @ApiModelProperty(value = "本月缴费")
    private BigDecimal monthFee;

    @Excel(name = "交费房间")
    private String roomCodes;

    //以下属性为页面视图属性
    /** 企业名称 */
    @Excel(name = "企业名称")
    @ApiModelProperty(value = "企业名称")
    private String enterpriseName;

    /** 房源列表 */
//    @Excel(name = "房源列表")
//    @ApiModelProperty(value = "房源列表")
//    private List<RoomVO> rooms;

    //private String details;

    //报表查询日期
    @JsonFormat(pattern = "yyyy-MM")
    @DateTimeFormat(pattern = "yyyy-MM")
    private Date searchDate ;

    private String searchDateString;
}
